<!doctype html>
<html ng-app>
<head>
    <script src="test/angular.js"></script>
    <script src="test/script12.js"></script>
</head>
<body>
<div ng-controller="Ctrl2">
    Date format: <input ng-model="format">
    <hr/>
    Current time is: <span my-current-time="format"></span>
</div>
<hr>
<button ng-click="show=true">show</button>
<dialog title="Hello {{username}}."
        visible="show"
        on-cancel="show = false"
        on-ok="show = false; doSomething()">
    Body goes here: {{username}} is {{title}}.
</dialog>
</body>
</html>